import React, { Component } from 'react';
import './radio.scss';


class RadioComponet extends Component {
	onClick = (e) => {
		this.props.onChange({ data: !this.props.data, user: '123123' });
	}
	render() {
		return <label className={`radio-box ${this.props.data ? 'active' : ''}`}>
			<input type="radio" className="radio-type" checked={this.props.data} onClick={this.onClick} /> {this.props.place}
		</label>;
	}
}
export default RadioComponet;
